package com.company;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入#结束进程，请输入判断的内容：");
        String strings = sc.nextLine();
        while (!strings.equals("#")) {
            Scanner sc2 = new Scanner(strings);
            if (sc2.hasNextInt())
                System.out.println("整数");
            else if(sc2.hasNextDouble())
                System.out.println("小数");
            else
                System.out.println("字符串");
            strings = sc.nextLine();
        }
    }
}

